﻿@model  LX.Web.Mvc.Combin<List<S4Store.Domain.Store>, S4Store.Domain.Employee>
@{
    ViewBag.Title = "Modify";
    Layout = null;
}
<form class="pageForm addpage" action="@Url.Action("ModifyBack")" method="post">
<div style=" height:100%; width:100%; overflow:hidden" class="verticalSplitContainer">
		<div class="pageFormContent" style="overflow: auto;" ratio="*">
            <table style="width:100%">
                <tr>
                    <td width="10%">姓名：</td>
                    <td width="40%"><input type="text" value="@Model.Data2.Name" size="30" name="Name" class="textInput" /></td>
                    <td width="20%">性别：</td>
                <td width="30%"><input type="radio" value="1" name="Sex" @if(@Model.Data2.Sex== S4Store.Domain.Sex.MAN)
                                                                         {
                                                                             <text>checked="checked"</text>
                                                                         }/>男 &nbsp; &nbsp;
                                <input type="radio" value="0" name="Sex" @if(@Model.Data2.Sex== S4Store.Domain.Sex.WOMAN)
                                                                         {
                                                                             <text>checked="checked"</text>
                                                                         }/>女 </td>
                </tr>
                <tr>
                    <td width="10%">电  话：</td>
                    <td width="40%"><input type="text" size="30" value="@Model.Data2.Tel" name="Tel" class="textInput" /></td>
                    <td width="20%">从业开始时间：</td>
                    <td width="30%"><input type="text" size="30" value="@Model.Data2.WorkStartDate.ToString("yyyy-MM-dd")" class="textInput datetime" name="WorkStartDate" readonly="readonly" /></td>
                </tr>
                <tr>
                    <td width="10%">岗位级别：</td>
                    <td width="40%"><select name="GradeValue">
                        <option value="0" @if(@Model.Data2.GradeValue== 0)
                                                                         {
                                                                             <text>checked="checked"</text>
                                                                         }>初级</option>
                        <option value="1" @if(@Model.Data2.GradeValue== 1)
                                                                         {
                                                                             <text>checked="checked"</text>
                                                                         }>中级</option>
                        <option value="2" @if(@Model.Data2.GradeValue== 2)
                                                                         {
                                                                             <text>checked="checked"</text>
                                                                         }>高级</option>                        
                    </select></td>
                    <td width="20%">出生年月：</td>
                    <td width="30%"><input type="text" size="30" class="textInput datetime" value="@Model.Data2.Birthday.ToString("yyyy-MM-dd")" name="Birthday" readonly="readonly" /></td>
                </tr>
                 <tr>
                    <td width="10%">所属店：</td>
                    <td width="40%" > <select name="StoreId">
                        <option value=""></option>
                        @foreach (var store in Model.Data1)
                        {
                            <option value="@store.Id"  @if (Model.Data2.StoreId != null && Model.Data2.StoreId == store.Id)
                                                       {<text>selected="selected"</text>}>@store.Name</option>
                        }
                    </select></td>
                    <td width="20%">在职状态：</td>
                    <td width="30%"><select name="StatusValue">
                        <option value="0" @if(@Model.Data2.StatusValue== 0)
                                                                         {
                                                                             <text>checked="checked"</text>
                                                                         }>在岗</option>
                        <option value="1" @if (@Model.Data2.StatusValue == 1)
                                                                         {
                                                                             <text>checked="checked"</text>
                                                                         }>离职</option>
                        <option value="2" @if (@Model.Data2.StatusValue == 2)
                                                                         {
                                                                             <text>checked="checked"</text>
                                                                         }>升迁</option>                        
                    </select></td>
                </tr>
                
                <tr>
                    <td width="10%">入职时间：</td>
                    <td width="40%"><input type="text" size="30" class="textInput datetime" value="@Model.Data2.EmployedDate.ToString("yyyy-MM-dd")" name="EmployedDate" readonly="readonly" /></td>
                    
                    <td width="20%"></td>
                    <td width="30%"></td>
                </tr>
                @*<tr>
                    <td width="10%">类型：</td>
                    <td width="40%" ><select name="TypeValue">
                        <option value="1" @if (@Model.Data2.TypeValue == 1)
                                                                         {
                                                                             <text>checked="checked"</text>
                                                                         }>现场销售</option>
                        <option value="2" @if (@Model.Data2.TypeValue == 2)
                                                                         {
                                                                             <text>checked="checked"</text>
                                                                         }>电话销售</option>
                        <option value="4" @if (@Model.Data2.TypeValue == 4)
                                                                         {
                                                                             <text>checked="checked"</text>
                                                                         }>服务顾问</option>
                        <option value="8" @if (@Model.Data2.TypeValue == 8)
                                                                         {
                                                                             <text>checked="checked"</text>
                                                                         }>客户专员</option>
                        <option value="16" @if (@Model.Data2.TypeValue == 16)
                                                                         {
                                                                             <text>checked="checked"</text>
                                                                         }>车间主管</option>                     
                    </select></td>
                    <td width="20%"></td>
                    <td width="30%"></td>
                </tr>*@
            </table>
			<input type="hidden" name="Id" value="@Model.Data2.Id" />
			
		</div>
		<div class="formBar" ratio="#30">
			<ul>
                <li><div class="simplebutton"><div class="r"><button type="button" class="submit">保存</button></div></div></li>	
			</ul>
		</div>
</div>
</form>

